home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / hostc.h < prev    next >
C/C++ Source or Header  |  2009-02-26  |  1KB  |  40 lines

  1. /*
  2.  * Copyright 1995, 1996, 1999, 2000 by Paul Mattes.
  3.  *  Permission to use, copy, modify, and distribute this software and its
  4.  *  documentation for any purpose and without fee is hereby granted,
  5.  *  provided that the above copyright notice appear in all copies and that
  6.  *  both that copyright notice and this permission notice appear in
  7.  *  supporting documentation.
  8.  */
  9.  
  10. /*
  11.  *    hostc.h
  12.  *        Global declarations for host.c.
  13.  */
  14.  
  15. struct host {
  16.     char *name;
  17.     char *hostname;
  18.     enum { PRIMARY, ALIAS, RECENT } entry_type;
  19.     char *loginstring;
  20.     time_t connect_time;
  21.     struct host *prev, *next;
  22. };
  23. extern struct host *hosts;
  24.  
  25. extern void Connect_action(Widget w, XEvent *event, String *params,
  26.     Cardinal *num_params);
  27. extern void Disconnect_action(Widget w, XEvent *event, String *params,
  28.     Cardinal *num_params);
  29. extern void Reconnect_action(Widget w, XEvent *event, String *params,
  30.     Cardinal *num_params);
  31.  
  32. /* Host connect/disconnect and state change. */
  33. extern void hostfile_init(void);
  34. extern int host_connect(const char *n);
  35. extern void host_connected(void);
  36. extern void host_disconnect(Boolean disable);
  37. extern void host_in3270(enum cstate);
  38. extern void register_schange(int tx, void (*func)(Boolean));
  39. extern void st_changed(int tx, Boolean mode);
  40.